<?php
//CONSTANT
$DECKROOT = getcwd();

//RQUIRES
require('./config/config.php');
require $DECKROOT . '/classes/database/'.$dbType.".php";
	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
		<title>Proomeetheejus Dek</title>
		<LINK href="./css/main.css" rel="stylesheet" type="text/css">
	</head>
	<body>
<?php
# LOAD XML FILE
$XML = new DOMDocument();

$Decklist = new pmtData($dbHost, $dbUser, $dbPass, $dbName);
if($Decklist->getDeckList() != null)
{
	$XML->loadXML($Decklist->getDeckList());
}

# DEFINE STYLESHEET
$deckXSL = './xsl/testDeck.xsl';
$XSL = new DOMDocument();
$XSL->load( $deckXSL );

# START XSLT
$xslt = new XSLTProcessor();
$xslt->importStylesheet( $XSL );

//echo $Deck->getDeck($deckID);
//echo $xslt->transformToXML( $XML );
?>
</body>
</html>